project(gtk_keyboard)

cmake_minimum_required(VERSION 2.6 FATAL_ERROR)

aux_source_directory(. SRC_LIST)
add_executable(${PROJECT_NAME} ${SRC_LIST})

add_definitions(-DTITLE="${PROJECT_NAME}")

find_package(GTK2 REQUIRED)
find_package(X11 REQUIRED)
mark_as_advanced(
    GTK2_INCLUDE_DIRS GTK2_LIBRARIES
    X11_X11_INCLUDE_PATH X11_X11_LIB
    )
include_directories(
    ${GTK2_INCLUDE_DIRS}
    ${X11_X11_INCLUDE_PATH}
    )
target_link_libraries( ${PROJECT_NAME}
    ${GTK2_LIBRARIES}
    ${X11_X11_LIB}
    Xtst
    fakekey
    )
